/*
 * @Author: 宋佳馨 song2005315@qq.com
 * @Date: 2025-09-24 15:47:47
 * @LastEditors: 宋佳馨 song2005315@qq.com
 * @LastEditTime: 2025-09-26 17:27:24
 * @FilePath: \团队项目\team-work\am-ui\src\api\user.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
/*
 * @Description: 
 * @Author: charles
 * @Date: 2021-12-16 09:39:13
 * @LastEditors: charles
 * @LastEditTime: 2021-12-16 13:00:42
 */
import request from '@/utils/request'


export function login(data) {
  return request({
    url: '/user/login',
    method: 'post',
    data
  })
}

export function getInfo() {
  return request({
    url: '/user/getInfo',
    method: 'get',
  })
}

export function logout() {
  return request({
    url: '/user/logout',
    method: 'get'
  })
}
